#include <stdio.h>
#include <string.h>
int main()
{
	char f[20];
	int a = 0, b = 0, c = 0, d = 0, e = 0;
	printf("input:\n");
	fgets(f, sizeof(f), stdin);
	for (int i = 0; i<20; i++)
	{
		if (f[i] >= 'A' && f[i] <= 'Z')
			a++;
		if (f[i] >= 'a' && f[i] <= 'z')
			b++;
		if (f[i] >= '0' && f[i] <= '9')			
			c++;
		if (f[i] == ' ')
			d++;
		else
			e++;
	}
	printf("大写字母有%d个\n", a);
	printf("小写字母有%d个\n", b);
	printf("数字有%d个\n", c);
	printf("空格有%d个\n", d);
	printf("其他字符有%d个\n", e);
	return 0;
}
